import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import "./assets/style/style.css";

// 创建pinia实例，注册app.use(pinia)
const pinia = createPinia();
const app = createApp(App);

app.directive("focus", {
  updated(el, bindings, vnode, preVnode) {
    // console.log(el);
    el.focus();
  },
});
app.use(pinia);

app.mount("#app");
